#!/bin/sh
#
# This script will compile the lab4 binaries.  Invoked without an
# argument, it will compile the basic lab4 program; with an argument,
# it will compile the trackball version.
#

if [ $# -gt 0 ]
then
	target="lab4track"
	srcfiles="lab4-trackball.cpp TrackBall.cpp"
else
	target="lab4"
	srcfiles="lab4.cpp"
fi

# echo the compilation command

set -x

g++ -g -o $target $srcfiles \
	ShaderSetup.cpp -framework GLUT -framework OpenGL
